package org.example.controller;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package org.example.controller
 * @date 2024/4/16 上午11:07
 */
import org.example.service.StudentService;
import org.example.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TeacherController {
    @Autowired
    private TeacherService teacherService;
    @RequestMapping("/create")
    public String create(){
        teacherService.createTableTeacher();
        return "已执行创建命令，请前往数据库查看。";
    }
}